package com.ruoyi.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.blog.domain.BlogCategory;
import com.ruoyi.blog.domain.vo.BlogCategoryVo;
import com.ruoyi.blog.mapper.BlogCategoryMapper;
import com.ruoyi.blog.service.BlogCategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 35038
* @description 针对表【blog_category】的数据库操作Service实现
* @createDate 2024-10-10 21:01:41
*/
@Service
public class BlogCategoryServiceImpl extends ServiceImpl<BlogCategoryMapper, BlogCategory>
    implements BlogCategoryService {

    @Resource
    private BlogCategoryMapper blogCategoryMapper;

    @Override
    public List<BlogCategoryVo> getList(BlogCategory blogCategory) {
        return blogCategoryMapper.getList(blogCategory);
    }

    @Override
    public Integer add(BlogCategory blogCategory) {
        return blogCategoryMapper.insert(blogCategory);
    }




}




